def fib(n):
    result = []

    a, b = 0, 1

    for i in range(n):
        result.append(a)
        a, b = b, a + b

    return result


a = fib(10)

print(a)
